﻿using System;
using System.Collections.Generic;
using System.Text;
using ProtocolVN.Framework.Core;
using System.Data;

namespace ProtocolVN.Framework.Win
{
    public abstract class PhieuQLCustomChange : XtraFormPL
    {
        #region Các biến của form Quan Ly Tuyệt đối không thay đổi
        public DevExpress.XtraBars.BarManager barManager1;
        public DevExpress.XtraBars.Bar MainBar;
        public DevExpress.XtraBars.BarButtonItem barButtonItemAdd;
        public DevExpress.XtraBars.BarButtonItem barButtonItemDelete;
        public DevExpress.XtraBars.BarButtonItem barButtonItemUpdate;
        public DevExpress.XtraBars.BarButtonItem barButtonItemPrint;
        public DevExpress.XtraBars.BarButtonItem barButtonItemView;
        public DevExpress.XtraBars.BarDockControl barDockControlTop;
        public DevExpress.XtraBars.BarDockControl barDockControlBottom;
        public DevExpress.XtraBars.BarDockControl barDockControlLeft;
        public DevExpress.XtraBars.BarDockControl barDockControlRight;
        public DevExpress.XtraEditors.SplitContainerControl splitContainerControl1;
        public DevExpress.XtraTab.XtraTabControl xtraTabControlDetail;
        public DevExpress.XtraTab.XtraTabPage xtraTabPageDetail;
        public DevExpress.XtraBars.PopupControlContainer popupControlContainerFilter;
        public DevExpress.XtraBars.BarStaticItem barStaticItem1;
        public DevExpress.XtraGrid.GridControl gridControlMaster;
        public DevExpress.XtraGrid.Views.Grid.PLGridView gridViewMaster;
        public DevExpress.XtraGrid.GridControl gridControlDetail;
        public DevExpress.XtraGrid.Views.Grid.PLGridView gridViewDetail;
        public DevExpress.XtraBars.BarButtonItem barButtonItem1;
        public DevExpress.XtraBars.BarButtonItem barButtonItem2;
        public DevExpress.XtraBars.BarButtonItem barButtonItemCommit;
        public DevExpress.XtraBars.BarButtonItem barButtonItemNoCommit;
        public DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
        public DevExpress.XtraGrid.Columns.GridColumn gridColumn6;
        public DevExpress.XtraBars.BarButtonItem barButtonItemTaoPhieuMuaHang;
        public System.ComponentModel.IContainer components;
        public DevExpress.XtraBars.BarSubItem barSubItem1;
        public DevExpress.XtraBars.BarButtonItem barButtonItemXem;
        public DevExpress.XtraBars.BarButtonItem barButtonItemClose;
        public DevExpress.XtraBars.PopupMenu popupMenuFilter;
        public DevExpress.XtraBars.BarCheckItem barCheckItemFilter;
        public DevExpress.XtraBars.BarButtonItem barButtonItemSearch;
        public DevExpress.XtraBars.BarButtonItem barButtonItem3;
        public DevExpress.XtraBars.PopupMenu popupMenu1;
        public DevExpress.XtraBars.BarButtonItem barButtonItem4;
        #endregion

        #region Methods
        public virtual _MenuItem GetBusinessMenuList() {
            return null;
        }
        public virtual _MenuItem GetMenuAppendGridList() {
            return null;
        }
        public virtual void HookFocusRow() { 
        }
        public virtual _Print InAction(long[] ids) {
            return null;
        }
        public abstract void InitDetail();
        public abstract void InitMaster();
        public abstract QueryBuilder PLBuildQueryFilter();
        public abstract DataTable[] PLLoadDataDetailPart(long MasterID);
        public abstract void PLLoadFilterPart();
        public abstract long[] ShowAddForm();
        public abstract void ShowUpdateForm(long id);
        public abstract void ShowViewForm(long id);
        public virtual string UpdateRow() {
            return string.Empty;
        }
        public abstract bool XoaAction(long id);
        public abstract long GetIDKey();
        public abstract void Find(QueryBuilder query) ;
        #endregion
    }
}
